
#pragma once

#include "Math/Math3d.h"
#include "Animation/HrkModel.h"
#include "Animation/HrkAnim.h"


class CPlayer
{
public:
	
	typedef enum PLAYER_SEQUANCE
	{
		SEQ_IDLE = 0,
		SEQ_WALK_FORWARD,
		SEQ_WALK_BACKWARD,
		SEQ_TURN_LFET,
		SEQ_TURN_RIGHT,
		SEQ_ATTACK,
		SEQ_BLOCK,

		MAX_SEQUANCE
	};

	float m_t;

	PLAYER_SEQUANCE m_currentAnimation;

	CHrkModel* m_playerMod;
	CHrkAnim* m_animList[MAX_SEQUANCE];

	CPlayer();
	void GetCurrentMove(float& mx,float& my);
	void GetCurrentRotate(float& rx,float& ry,float& rz);
	void CreateModel( const TCHAR* filename );
	CHrkAnim* CreateAnimation( PLAYER_SEQUANCE seq,const TCHAR* filename ); 
	void Update();
	void Draw();
	void Destroy();
	void SetCurrrentAnimation( PLAYER_SEQUANCE seq );
	void SetPosition( GLvec3f pos );
	GLvec3f GetPosition();
	void SetOrientation( GLvec3f angle );
	GLvec3f GetOrientation(); 
	void SetScale( GLvec3f scale );
	void RewindSequance();
	void BreakSequance();
	GLvec3f GetScale();
};